package com.hsnn.medstgmini.util;

import java.util.HashMap;

public class ConstantsUtil {

	public static HashMap<String, String> status = new HashMap<String, String>(){{
		put("1", "是");
		put("0", "否");
		put("9", "未知");
	}};
	
	public static String literStatus(String code) {
		return status.get(code);
	}
	
	public static HashMap<String, String> delStatus = new HashMap<String, String>(){{//配送关系状态
		put("1", "已确认");
		put("0", "未确认");
		put("2", "拒绝");
		put("3", "解除");
	}};
	
	public static String delStatus(String code) {
		return delStatus.get(code);
	}
	
	public static HashMap<String, String> stdStatusMap = new HashMap<String, String>(){{//标准库状态
		put("1", "启用");
		put("0", "停用");
		put("3", "合并");
	}};
	
	public static String stdStatus(String code) {
		return stdStatusMap.get(code);
	}
	
	public static HashMap<String, String> bakPurchAudStatus = new HashMap<String, String>(){{//标准库状态
		put("0", "未审核");
		put("1", "通过");
		put("2", "不通过");
	}};
	
	public static String literBakPurchAudStatus(String code) {
		return bakPurchAudStatus.get(code);
	}
	
	public static HashMap<String, String> bakDrugFlag = new HashMap<String, String>(){{//备案药品标志
		put("0", "非备案药品");
		put("1", "备案药品");
	}};
	
	public static String bakDrugFlag(String code) {
		return bakDrugFlag.get(code);
	}
	public static HashMap<String, String> isLongbakDrugFlag = new HashMap<String, String>(){{//是否长期备案药品标志
		put("0", "非长期");
		put("1", "长期");
	}};
	
	public static String isLongbakDrugFlag(String code) {
		return bakDrugFlag.get(code);
	}
	
	public static HashMap<String, String> orderStatus = new HashMap<String, String>(){{//订单状态
		put("1", "已提交");
		put("2", "确认配送");
		put("3", "无法配送");
		put("4", "已配送");
		put("5","已到货");
		put("6","未到货");
	}};
	
	public static String orderStatus(String code) {
		return orderStatus.get(code);
	}
	public static HashMap<String, String> returnStatus = new HashMap<String, String>(){{//退货单状态
		put("1", "已提交");
		put("2", "确认退货");
		put("3", "拒绝退货");
	}};
	
	public static String returnStatus(String code) {
		return returnStatus.get(code);
	}
	public static HashMap<String, String> settlementStatus = new HashMap<String, String>(){{//结算单状态
		put("0", "未提交");
		put("1", "已提交");
		put("2", "通过");
		put("3", "不通过");
		put("4", "通过");
		put("5", "不通过");
		put("6", "已纳入二级结算单");
		put("7", "已纳入支付单");
	}};
	
	public static String settlementStatus(String code) {
		return settlementStatus.get(code);
	}
	public static HashMap<String, String> payType = new HashMap<String, String>(){{//支付明细类型
		put("1", "采购单");
		put("2", "退货单");
	}};
	
	public static String payType(String code) {
		return payType.get(code);
	}
	public static HashMap<String, String> settlementType = new HashMap<String, String>(){{
		put("1", "医疗机构结算单");
		put("2", "卫生局结算单");
	}};
	
	public static String settlementType(String code) {
		return settlementType.get(code);
	}
	
	public static HashMap<String, String> delOrderStatus = new HashMap<String, String>(){{
		put("0", "待收货");
		put("1", "已到货");
		put("2", "未到货");
	}};
	
	public static String delOrderStatus(String code) {
		return delOrderStatus.get(code);
	}
	
	public static HashMap<String, String> paymentStatus = new HashMap<String, String>(){{
		put("0", "未提交");
		put("1", "已提交");
		put("2", "审核通过");
		put("3", "审核未通过");
		put("4", "复审通过");
		put("5", "复审未通过");
		put("6", "已支付");
	}};
	
	public static String paymentStatus(String code) {
		return paymentStatus.get(code);
	}
	
	
	public static HashMap<String, String> drugCatalogAttr = new HashMap<String, String>(){{
		put("0", "国家");
		put("1", "省增补");
	}};
	
	public static String drugCatalogAttr(String code) {
		return drugCatalogAttr.get(code);
	}
	public static HashMap<String, String> compprofileAuditStatus = new HashMap<String, String>(){{//采购项目企业资质审核状态
		put("0", "提交");
		put("1", "审核通过");
		put("2", "审核不通过");
	}};
	
	public static String compprofileAuditStatus(String code) {
		return compprofileAuditStatus.get(code);
	}
	public static HashMap<String, String> compprofileComplainStatus = new HashMap<String, String>(){{
		put("0", "提交");
		put("1", "澄清通过");
		put("2", "澄清不通过");
	}};
	
	public static String compprofileComplainStatus(String code) {
		return compprofileComplainStatus.get(code);
	}
	
	
	public static HashMap<String, String> compType = new HashMap<String, String>(){{
		put("1", "生产企业");
		put("2", "配送企业");
	}};
	
	public static String compType(String code) {
		return compType.get(code);
	}
	
	public static HashMap<String, String> decryptStatus = new HashMap<String, String>(){{
		put("0", "未报价");
		put("1", "未解密");
		put("2", "已解密");
	}};
	
	public static String decryptStatus(String code) {
		return decryptStatus.get(code);
	}
	
	
	
	public static HashMap<String, String> curStatus = new HashMap<String, String>(){{
		put("pro_submit_starttime", "1");
		put("pro_audit_starttime", "2");
		put("pro_audit_pub_starttime", "3");
		put("complain_starttime", "4");
		put("complain_pub_starttime", "5");
		put("price_quote_simu_starttime", "6");
		put("price_quote_starttime", "7");
		put("price_quote_decode_starttime", "8");
		put("price_grade_starttime", "9");
		put("semi_win_pub_starttime", "10");
		put("appeal_starttime", "11");
		put("win_pub_starttime", "12");
		put("proj_starttime", "13");
		put("pro_submit_endtime", "1");
		put("pro_audit_endtime", "2");
		put("pro_audit_pub_endtime", "3");
		put("complain_endtime", "4");
		put("complain_pub_endtime", "5");
		put("price_quote_simu_endtime", "6");
		put("price_quote_endtime", "7");
		put("price_quote_decode_endtime", "8");
		put("price_grade_endtime", "9");
		put("semi_win_pub_endtime", "10");
		put("appeal_endtime", "11");
		put("win_pub_endtime", "12");
		put("proj_endtime", "13");
	}};
	
	public static String curStatus(String code) {
		return curStatus.get(code);
	}
	public static String columTxt(String code) {
		return columTxt.get(code);
	}
	public static HashMap<String, String> columTxt = new HashMap<String, String>(){{
		put("first_level_indi_code", "企业资质类型编码");
		put("first_level_indi_name", "企业资质类型名称");
		put("status", "状态");
		put("remark", "备注");
	}};
	
	public static HashMap<String, String> importFileStatus = new HashMap<String, String>(){{
		put("0", "未校验");
		put("1", "校验中");
		put("2", "校验异常");
		put("3", "校验通过");
		put("4", "校验不通过");
		put("5", "导入中");
		put("6", "导入成功");
		put("7", "导入失败");
		put("8", "放弃导入");
	}};
	public static String importFileStatus(String code) {
		return importFileStatus.get(code);
	}
	public static HashMap<String, String> delRange = new HashMap<String, String>(){{
		put("0", "全部");
		put("1", "县级及县以上医疗机构");
		put("2", "基层医疗机构");
	}};
	public static String delRange(String code) {
		return delRange.get(code);
	}
	
	public static HashMap<String, String> selectRangeStatus = new HashMap<String, String>(){{
		put("0", "其他");
		put("1", "未遴选");
		put("2", "遴选通过");
		put("3", "遴选不通过");
	}};
	public static String selectRangeStatus(String code) {
		return selectRangeStatus.get(code);
	}
	public static HashMap<String, String> submitStatus = new HashMap<String, String>(){{
		put("0", "其他");
		put("1", "已申报");
		put("2", "已撤销");
	}};
	public static String submitStatus(String code) {
		return submitStatus.get(code);
	}
	
	public static HashMap<String, String> shortageStatus = new HashMap<String, String>(){{
		put("0", "未核实");
		put("1", "核实缺货");
		put("2", "核实未缺货");
	}};
	public static String shortageStatus(String code) {
		return shortageStatus.get(code);
	}
}
